home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / system / bsvc-1.000 / bsvc-1 / bsvc-1.0.4 / src / Framework / Tools.hxx < prev   
Encoding:
Text File  |  1995-07-26  |  1.6 KB  |  44 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. // $Id: Tools.hxx,v 1.1 1994/02/18 19:54:18 bmott Exp $
  3. ///////////////////////////////////////////////////////////////////////////////
  4. //
  5. // Tools.hxx - This is a collection of useful routines 
  6. //
  7. //   unsigned int StringToInt(String &);
  8. //   String& IntToString(unsigned int value, int size, int field_width);
  9. //
  10. //
  11. // BSVC "A Microprocessor Simulation Framework"
  12. // Copyright (c) 1993
  13. // By: Bradford W. Mott
  14. // November 6,1993
  15. //
  16. ///////////////////////////////////////////////////////////////////////////////
  17. // $Log: Tools.hxx,v $
  18. // Revision 1.1  1994/02/18  19:54:18  bmott
  19. // Initial revision
  20. //
  21. ///////////////////////////////////////////////////////////////////////////////
  22.  
  23. #ifndef TOOLS_HXX
  24. #define TOOLS_HXX
  25.  
  26. #include "String.h"
  27.  
  28. ///////////////////////////////////////////////////////////////////////////////
  29. // Convert the string to an unsigned integer
  30. ///////////////////////////////////////////////////////////////////////////////
  31. unsigned int StringToInt(String);
  32.  
  33. ///////////////////////////////////////////////////////////////////////////////
  34. // Convert the value to a string of width padded with zeros
  35. ///////////////////////////////////////////////////////////////////////////////
  36. String IntToString(unsigned int value, int width);
  37.  
  38. ///////////////////////////////////////////////////////////////////////////////
  39. // Convert the value to a decimal string padded with spaces
  40. ///////////////////////////////////////////////////////////////////////////////
  41. String IntToDecimal(unsigned long value, int width);
  42.  
  43. #endif
  44.